#!/bin/bash

declare -i sum=0
declare -i i=0
for i in 1 2 3 4 5 6 7 8 9 ; do
    sum=$sum+$i
done
echo "sum=$sum"

declare -i sum2=0
for (( VAR = 0; VAR < 100; ++VAR )); do
    sum2=$sum2+$VAR
done

echo "sum2=$sum2"

path="/e/webProject/blog/"
for fileName in `ls $path`
do
if [ -d "$path$fileName" ]; then
echo "$fileName 是文件夹"
elif [ -f "$path$fileName" ]; then
echo "$fileName 是文件"
fi
done